'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    const { INTEGER, BOOLEAN , STRING ,DATE} = Sequelize;
    await queryInterface.createTable('movie_class', {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      name: STRING(100),
      show: BOOLEAN,
      idx: INTEGER(4),
      created_at: DATE,
      updated_at: DATE,
    });
  },

  async down (queryInterface, Sequelize) {
    await queryInterface.dropTable('movie_class');
  }
};
